summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-09-29 03:00:28 +0200
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-09-29 03:00:28 +0200
commitc2cbfb78a44e1070d510ed770af444a7aee20d9f (patch)
treec92e01f6cd3c29ce0013d63ecf5df978fec9fbe2
parentSnap for 9059485 from fa4e513d650b5e201d81772df880be4d78de8966 to udc-d1-release (diff)
parentMerge "Fix doing silent update,power cut/restoration,screen is turned on" am: f07eaeb72e am: 859ebabebd am: 50ed6648b1 am: cfccc925f6 am: 1e0da76374 (diff)
downloadandroid_bootable_recovery-c2cbfb78a44e1070d510ed770af444a7aee20d9f.tar
android_bootable_recovery-c2cbfb78a44e1070d510ed770af444a7aee20d9f.tar.gz
android_bootable_recovery-c2cbfb78a44e1070d510ed770af444a7aee20d9f.tar.bz2
android_bootable_recovery-c2cbfb78a44e1070d510ed770af444a7aee20d9f.tar.lz
android_bootable_recovery-c2cbfb78a44e1070d510ed770af444a7aee20d9f.tar.xz
android_bootable_recovery-c2cbfb78a44e1070d510ed770af444a7aee20d9f.tar.zst
android_bootable_recovery-c2cbfb78a44e1070d510ed770af444a7aee20d9f.zip
-rw-r--r--bootloader_message/bootloader_message.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootloader_message/bootloader_message.cpp b/bootloader_message/bootloader_message.cpp
index 1ea56cd4e..0a713eed5 100644
--- a/bootloader_message/bootloader_message.cpp
+++ b/bootloader_message/bootloader_message.cpp
@@ -209,7 +209,11 @@ bool update_bootloader_message_in_struct(bootloader_message* boot,
memset(boot->command, 0, sizeof(boot->command));
memset(boot->recovery, 0, sizeof(boot->recovery));
- strlcpy(boot->command, "boot-recovery", sizeof(boot->command));
+ if (android::base::GetBoolProperty("ro.boot.quiescent", false)) {
+ strlcpy(boot->command, "boot-recovery,quiescent", sizeof(boot->command));
+ } else {
+ strlcpy(boot->command, "boot-recovery", sizeof(boot->command));
+ }
std::string recovery = "recovery\n";
for (const auto& s : options) {